from django.db import models
from dj_shop.utils.models import BaseModel


# QQ用户信息 data models here.
# 每个模型类都继承BaseModel，包含create_time和update_time
class OauthQQUser(BaseModel):
    user = models.ForeignKey('users.User', on_delete=models.CASCADE, verbose_name='QQ用户')
    openid = models.CharField(max_length=64, db_index=True, verbose_name='QQ_openid')

    class Meta:
        db_table = 'dj_user_oauth_qq'
        verbose_name = 'QQ用户登录数据'
        verbose_name_plural = verbose_name
